aux_source_directory(. dir_source)
include_directories(../include)
include_directories(../include/log)
include_directories(../public)
include_directories(../include/alsa)
include_directories(../include/jsoncpp)
include_directories(./)


set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
message(STATUS "LIBRARY_OUTPUT_PATH : ${LIBRARY_OUTPUT_PATH}")

#exec_program(svn ARGS "info ${PROJECT_SOURCE_DIR} | grep Revision: | awk '{print $2}'" OUTPUT_VARIABLE SVN_NUM)
set(SVN_NUM "567")
message(STATUS "SVN_NUM : ${SVN_NUM}")

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DLOG_MODULE_NAME='\"libusbstream\"' -DSVN_NUM=${SVN_NUM}")
message(STATUS "CFLAGS : ${CMAKE_C_FLAGS}")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLOG_MODULE_NAME='\"libusbstream\"' -DSVN_NUM=${SVN_NUM} -fpermissive")
message(STATUS "CXXFLAGS : ${CMAKE_CXX_FLAGS}")
add_library(usbstream STATIC ${dir_source})
